/*
 *  Copyright 2022 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import '../variables.less';

.reference-edit-form {
  .ant-form-item {
    margin-bottom: 8px;
  }
}

.glossary-synonym-tag {
  border: 1px solid @border-color !important;
}

.term-reference-tag {
  height: 24px;

  .ant-tag-close-icon {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    color: @primary-color;
  }

  span {
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.tag-button-container {
  height: 24px;

  span {
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.glossary-select {
  width: calc(100% - 64px);
}

.tags-input-container {
  .tags-item {
    margin-top: 8px;
    margin-right: 8px;
  }

  .tags-component-container {
    margin-top: 8px;
  }
}

.glossary-form-label {
  width: 125px;
  height: 32px;
  line-height: 32px !important;
}

.glossary-form-antd-label label {
  width: 125px;
  margin-right: 12px;
}

.glossary-form .ant-form-item {
  margin-bottom: 12px;
}

.edit-glossary-modal {
  .ant-form-item {
    margin-bottom: 12px;
  }

  .form-item-horizontal {
    margin-bottom: 8px;
  }
}

.edit-glossary-modal .ant-form-item {
  &.m-b-xss {
    margin-bottom: 4px;
  }
}

.glossary-overview-tab .schema-heading,
.glossary-details .schema-heading {
  font-size: 14px;
  font-weight: 500;
  color: @text-grey-muted;
}

.glossary-richtext-editor,
.edit-glossary-modal {
  .toastui-editor {
    min-height: 150px !important; // overriding inline style

    .ProseMirror {
      min-height: 150px;
    }
  }

  .toastui-editor-md-preview {
    min-height: 150px;
  }
}
